using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._GPS
{
    /// <summary>
    /// <para>Features To GPX</para>
    /// <para>Converts point, multipoint, or polyline features to a GPX format file (.gpx).</para>
    /// <para>将点、多点或折线要素转换为 GPX 格式文件 （.gpx）。</para>
    /// </summary>    
    [DisplayName("Features To GPX")]
    public class FeaturesToGPX : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FeaturesToGPX()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input point, multipoint, or line features.</para>
        /// <para>输入点要素、多点要素或线要素。</para>
        /// </param>
        /// <param name="_out_gpx_file">
        /// <para>Output GPX File</para>
        /// <para>The .gpx file that will be created with the geometry and attributes of the input features.</para>
        /// <para>将使用输入要素的几何和属性创建的 .gpx 文件。</para>
        /// </param>
        public FeaturesToGPX(object _in_features, object _out_gpx_file)
        {
            this._in_features = _in_features;
            this._out_gpx_file = _out_gpx_file;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Features To GPX";

        public override string CallName => "conversion.FeaturesToGPX";

        public override List<string> AcceptEnvironments => ["extent", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_features, _out_gpx_file, _name_field, _description_field, _z_field, _date_field];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input point, multipoint, or line features.</para>
        /// <para>输入点要素、多点要素或线要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output GPX File</para>
        /// <para>The .gpx file that will be created with the geometry and attributes of the input features.</para>
        /// <para>将使用输入要素的几何和属性创建的 .gpx 文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output GPX File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_gpx_file { get; set; }


        /// <summary>
        /// <para>Name Field</para>
        /// <para>A field from the input features with values used to populate the GPX name tag.</para>
        /// <para>输入要素中的字段，其中包含用于填充 GPX 名称标签的值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Name Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _name_field { get; set; } = null;


        /// <summary>
        /// <para>Description Field</para>
        /// <para>A field from the input features with values used to populate the GPX desc tag.</para>
        /// <para>输入要素中的字段，其中包含用于填充 GPX desc 标签的值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Description Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _description_field { get; set; } = null;


        /// <summary>
        /// <para>Z Field</para>
        /// <para>A numeric field from the input features with values used to populate the GPX elevation tag. If an elevation field is not specified, the z-values from the input features' geometries will be used to populate the GPX elevation tag.</para>
        /// <para>输入要素中的数值字段，其中包含用于填充 GPX 高程标签的值。如果未指定高程字段，则将使用输入要素几何中的 z 值来填充 GPX 高程标注。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Z Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _z_field { get; set; } = null;


        /// <summary>
        /// <para>Date Field</para>
        /// <para>A date/time field from the input features with values used to populate the GPX time tag.</para>
        /// <para>输入要素中的日期/时间字段，其中包含用于填充 GPX 时间标签的值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Date Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _date_field { get; set; } = null;


        public FeaturesToGPX SetEnv(object extent = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(extent: extent, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}